package com.wltt.product.ahuthr.controller;

import com.wltt.product.ahuthr.model.ResultData;
import com.wltt.product.ahuthr.model.vo.*;
import com.wltt.product.ahuthr.service.AgreementService;
import com.wltt.product.ahuthr.service.SystemAgreementTypeService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/system/agreementType")
public class AgreementTypeController {

    @Resource
    private SystemAgreementTypeService systemAgreementTypeService;

    /**
     * 查询列表
     *
     * @return
     */
    @RequestMapping(value = {"/listAll"}, method = RequestMethod.POST)
    public ResultData listAll() {
        return systemAgreementTypeService.listAll();
    }


}
